import request from '@/plugin/axios'
import util from '@/libs/util.js'

export default {

	list (data) {
		return request({
			url: 'commissionSalesTrans/list',
			headers: {},
			method: 'post',
			data,
		});
	},

	withdrawFirstReview (data) {
		return request({
			url: 'commissionSalesTrans/withdrawFirstReview',
			headers: {},
			method: 'post',
			data,
		});
	},

	withdrawSecondReview (data) {
		return request({
			url: 'commissionSalesTrans/withdrawSecondReview',
			headers: {},
			method: 'post',
			data,
		});
	},

  // 获取options
  getOptions(data) {
    return request({
      url: 'bank/channelInfo/options',
      headers: {},
      method: 'post',
      data,
    });
  },

  // 绑定商户
  bindMch(data) {
    return request({
      url: 'commissionSales/bindMch',
      headers: {},
      method: 'post',
      data,
    });
  },

   // 查看绑定商户
  getBindedMch(data) {
    return request({
      url: 'commissionSales/getBindedMch',
      headers: {},
      method: 'post',
      data,
    });
  },

  // 提现币种options
  getCurrencyOptions(data) {
    return request({
      url: 'commissionSalesTrans/currencyOptions',
      headers: {},
      method: 'post',
      data,
    });
  },

  // 提现
  add(data) {
    return request({
      url: 'commissionSalesTrans/add',
      headers: {},
      method: 'post',
      data,
    });
  },
};